export function isFunction(virtualDOM) {
    return virtualDOM && typeof virtualDOM.type === 'function'
}

export function isFunctionComponent(virtualDOM) {
    const type = virtualDOM.type
    return isFunction(virtualDOM) && !(type.prototype && type.prototype.render)
}

export function isSameComponent(virtualDOM, oldComponent) {
    return oldComponent && virtualDOM.type === oldComponent.constructor
}
